# -*- coding:utf8 -*- #

# -----------------------------------------------------------------------------------

# ProjectName:   property-ui-auto-test

# FileName:     login_page

# Author:      

# Datetime:    2022/5/2 16:08

# Description：

# -----------------------------------------------------------------------------------
from common.util.baseUtil.base import Base
from time import sleep


class LoginPage(Base):
    # 集团
    def login(self, username="18402857721", password="123123"):
        """
            登录页
        :param username:用户名
        :param password: 密码
        :return: None
        """
        self.send_keys('//*[@id="app"]/div/form/div/div[1]/div/div/input', username)
        self.send_keys('//*[@id="app"]/div/form/div/div[2]/div/div/input', password)
        self.click('//*[@id="app"]/div/form/div/div[3]/div/button')
        sleep(10)


if __name__ == '__main__':
    login = LoginPage()
    login.login()
    # login.quit()
